// 配置文件路劲传递的参数
const mdfileContext = require.context('./notes/', true, /\.md$/) 
const exeStr = /\.\/([.\w\W-]+?)\.md/i
const fileMdObj = {} // 组件对象模块
const fileName = {} // 组件模块名称

mdfileContext.keys().forEach(function(key) {
    let name = key.match(exeStr)[1].replace(/-/,"")
    let compName = 'DM'+name
    fileMdObj[compName] = mdfileContext(key).default || mdfileContext(key)
    fileName[compName] = compName
})

export  {fileMdObj}
export default fileName